﻿using System;

namespace CsharpTrainer.Model.Entities
{
    public class AccountCharacter
    {
        public string CharacterName { get; set; }
        public string CharacterId { get; set; }
        public DateTime LoginTime { get; set; }
        public string LoginIP { get; set; }
        public string Status { get; set; }

        public override string ToString()
        {
            string format = "Character Name: {0}\nCharacter Id: {1}\n"
                          + "Login Time: {2}\nLogin IP: {3}\nStatus: {4}\n";

            return string.Format(format, CharacterName, CharacterId, LoginTime, LoginIP, Status);
        }
    }
}
